<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head profile="http://gmpg.org/xfn/11">
	<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
	
	<title><?php wp_title('|',true,'right'); ?><?php bloginfo('name'); ?></title>
	
	<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats please -->
	<meta name="verify-v1" content="NSDfysDiq+6EVRipwmTVolTADlXx/za57fo/REPoYzM=" />

	<style type="text/css" media="screen">
		@import url(<?php bloginfo('stylesheet_url'); ?>);
	</style>	

	<link rel="Shortcut Icon" href="<?php bloginfo('template_directory')?>/images/favicon.ico" type="image/x-icon" />
	<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
	<link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
	<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
	
	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <?php wp_get_archives('type=monthly&format=link'); ?>
	<?php //comments_popup_script(); // off by default ?>
	
	<?php wp_head(); ?>
	
</head>
<body>

<div id="header" onclick="location.href='<?php echo get_settings('home'); ?>';" style="cursor: pointer;">
	<div id="titulo">
		<h1><a href="<?php echo get_settings('home'); ?>"><br/><?php bloginfo('name'); ?></a></h1>
		<p class="descripcion_sitio"><?php bloginfo('description'); ?></p>
	</div>	
	
	<?php if ( !function_exists('dynamic_sidebar')  || !dynamic_sidebar('ads_header') ) {} ?>

</div>

<div id="barra">
	<div id="social">
	<ul>
		<?php
		$bookmarks = get_bookmarks( array(
			'orderby'        => 'name',
			'order'          => 'ASC',
			'category_name'  => 'Header'
                         ));
		foreach ( $bookmarks as $bm ) { 
   			printf( '<a href="%s" title="%s"><img src="%s" alt="%s"></a></li>', $bm->link_url, $bm->link_description, $bm->link_image,$bm->link_name);
		}
		?>
	</ul>	
	</div>
	
	<div id="pages">
		<div class="wrapper">
			<?php wp_nav_menu(array(
				'theme_location' => 'primary',
				'container' => 'false',
				'depth' => '1'));
			?>					
		</div>
	</div>
	
	
</div>

<div id="wrapper" class="wrapper">
	
<!-- end header -->